class_name GameEndLevel
extends Node2D

@onready var ui_game_end: UIGameEnd = $UIGameEnd


func _ready() -> void:
	if GlobalData.game_end_result == GlobalData.GameResult.Fail:
		ui_game_end.show_fail_message()
	elif GlobalData.game_end_result == GlobalData.GameResult.Success:
		ui_game_end.show_finish_message()
	
	Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
